<?php
/**
 * @author  Roberto Hernandez De La Luz at Netosfera
 * @date    2011-04-13
 */
?>

<script type="text/javascript">
	$(function() {
		$("#tabsV").tabs().addClass('ui-tabs-vertical ui-helper-clearfix');
		$("#tabs li").removeClass('ui-corner-top').addClass('ui-corner-left');
	});
</script> 
        


<div id="tabsV" class="corner">

        <ul class="corner">
            <?php 

            $c = 1;

            foreach ($vehiculos as $vehiculo): ?>

                <li ><a href="#tabs-<?php echo $c; ?>"><?php echo $vehiculo->getAnoModelo()->getModelo(); ?></a></li>

                <?php $c++; ?>
            <?php endforeach; ?>
        </ul>
            <?php 
            $cc=1;
            foreach ($vehiculos as $vehiculo): ?>

            <?php $datos=$vehiculo->ajustedimensiones(); ?>
				
                <div id="tabs-<?php echo $cc; ?>" class="corner">
                <div id="info-vehiculo">
               
                </div>
                 
                <div id="thumb-vehiculo">
                    <img src="/uploads/modelos/<?php echo $vehiculo->getFoto1(); ?>" style="<?php echo 'height:'.$datos[1].'px; width:'.$datos[0].'px;'; ?>">
                </div>
                <p class="parrafo-vehiculo"><span class="titulo-thumb"><?php echo $vehiculo->getModelo(); ?></span>
                <?php echo $vehiculo->getDescripcionResumen(); ?></p>
                <?php echo button_to('Conozca m&aacute;s', 'venta/show?id_vehiculo_venta='.$vehiculo->getIdVehiculoVenta(), 'class="button"') ;?>
                </div>

                <?php $cc++; ?>
            <?php endforeach; ?>

</div>

